﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace NetLogger
{
	public class NetAprs
	{
		public NetAprs( MySqlDataReader reader )
		{
			AprsId = reader.GetString( "source" );
			UpdateTime = new DateTimeOffset( reader.GetDateTime( "packet_date" ), TimeSpan.Zero );
			Latitude = reader.GetDouble( "latitude" );
			Longitude = reader.GetDouble( "longitude" );
		}

		public string AprsId
		{
			get;
			private set;
		}

		public DateTimeOffset UpdateTime
		{
			get;
			private set;
		}

		public double Latitude
		{
			get;
			private set;
		}

		public double Longitude
		{
			get;
			private set;
		}
	}
}
